package com.tech.zhidengxian.model.dataobject;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import lombok.Data;

import java.util.Date;

@TableName(value = "zdx_user",autoResultMap = true)
@Data
public class UserDO {

  @TableId(value = "id",type = IdType.AUTO)
  private Long id;
  private String username;
  private String password;
  private String phone;
  private String email;
  private String imageUrl;
  private Date registerTime;
  private Date updateTime;
  @TableField(typeHandler = JsonTypeHandler.class)
  private SchoolDO schoolInfo;


}
